package com.wj.test;

import com.wj.config.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wj on 2017/9/11.
 */

@RestController
@RequestMapping("wj")
public class HelloController {

    @Autowired
    private GirlProperties girlProperties;

    @RequestMapping(value = {"/hello","/bye"},method = RequestMethod.GET)
    public String hello(@RequestParam(value = "id",required = false,defaultValue = "0") Integer myId){
//        return girlProperties.getCupSize();
        return "is:  "+myId;
    }
}